//
//  LzwBaseViewController.m
//  CoJellyCartoon
//
//  Created by 刘志武 on 16/4/11.
//  Copyright © 2016年 CJG. All rights reserved.
//

#import "LzwBaseViewController.h"
#import "ColorManager.h"
@interface LzwBaseViewController ()

@property (nonatomic, strong) ColorManager* cm;

@end

@implementation LzwBaseViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    [self colorSetting];
    [self addObserver:self forKeyPath:@"cm.themeStyle" options:NSKeyValueObservingOptionNew context:nil];
}

- (ColorManager *)cm{
    return [ColorManager shareColorManager];
}

- (void)colorSetting{
    
}

- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSString *,id> *)change context:(void *)context{
    [self colorSetting];
}

- (void)dealloc{
    [self removeObserver:self forKeyPath:@"cm.themeStyle"];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
